All Questions
3 questions
2votes
0answers
736views
Unit testing for angular directive using date picker
I have directive to input date picker, can anyone help me to write the unit test case for this directive angular.module('myApp').directive('myDatepicker', function () { return { restrict: ...
4votes
7answers
3kviews
How can I check text content with respect to display:none style
I would like to get text content of a DOM node, but without elements that are effectively hidden (have style display:none). I know about DOM textContent property and jQuery's text() method (I think ...
0votes
1answer
1kviews
Angular.js: testing click on directive
I have an Angular.js directive which I am trying to write a test for. Basically, it is a wrapper for a checkbox, such as that when the wrapper is clicked, the checkbox's state is changed. The problem ...